*This file runs the regressions to create Table A3



**Table A3, Panel A: Alternative Outcome Variables, did_multiplegt estimator
*******************************************************************************
*******************************************************************************


*No rez-t controls: Y= % crops
did_multiplegt croppct ID	 year post, placebo(2) dynamic(2) trends_nonparam(StateCode) cluster(TOWNSHIP) breps(10) seed(10)   robust_dynamic longdiff_placebo covariances average_effect graphoptions (ytitle(Row Crops (%)) graphregion(color(white))  ysize(15) xtitle(Time to Treatment) xsize(20) yline(0, lpattern(dash) lcolor(gs10)) legend(off) ) 


*all rez-t controls: Y= % crops
did_multiplegt croppct ID	 year post, placebo(2) dynamic(2) trends_nonparam(StateCode) cluster(TOWNSHIP) breps(10) seed(10) controls(offrespop has_casino has_credit ) robust_dynamic longdiff_placebo covariances average_effect graphoptions (ytitle(Row Crops (%)) xtitle(Time to Treatment) graphregion(color(white))  ysize(15) xsize(20) xline(-.5) legend(off)) 


*No rez-t controls: Y= 1(% ag > 0)
did_multiplegt AgDum ID	 year post, placebo(2) dynamic(2) trends_nonparam(StateCode) cluster(TOWNSHIP) breps(10) seed(10)   robust_dynamic longdiff_placebo covariances average_effect graphoptions (ytitle(Probability of Agriculture) graphregion(color(white))  ysize(15) xtitle(Time to Treatment) xsize(20) yline(0, lpattern(dash) lcolor(gs10)) legend(off) ) 


*all rez-t controls: Y=  1(% ag > 0)
did_multiplegt AgDum ID	 year post, placebo(2) dynamic(2) trends_nonparam(StateCode) cluster(TOWNSHIP) breps(10) seed(10) controls(offrespop has_casino has_credit ) robust_dynamic longdiff_placebo covariances average_effect graphoptions (ytitle(Probability of Agriculture) xtitle(Time to Treatment) graphregion(color(white))  ysize(15) xsize(20) xline(-.5) legend(off)) 



*No rez-t controls: Y= % development
did_multiplegt devpct ID	 year post, placebo(2) dynamic(2) trends_nonparam(StateCode) cluster(TOWNSHIP) breps(10) seed(10)   robust_dynamic longdiff_placebo covariances average_effect graphoptions (ytitle(Development (%)) graphregion(color(white))  ysize(15) xtitle(Time to Treatment) xsize(20) yline(0, lpattern(dash) lcolor(gs10)) legend(off) ) 


*all rez-t controls: Y= % development
did_multiplegt devpct ID	 year post, placebo(2) dynamic(2) trends_nonparam(StateCode) cluster(TOWNSHIP) breps(10) seed(10) controls(offrespop has_casino has_credit ) robust_dynamic longdiff_placebo covariances average_effect graphoptions (ytitle(Development (%)) xtitle(Time to Treatment) graphregion(color(white))  ysize(15) xsize(20) xline(-.5) legend(off)) 



**Table A3, Panel B: Alternative Outcome Variables, csdid estimator
*******************************************************************************
*******************************************************************************


preserve
*keep if dropthis ==0  //Drops 206 observations that appear only in 2012 due to GIS processing issues (creates a balanced panel, other estimators do this automatically)

eststo clear
*Baseline with no rezxt controls: Y= % crops
csdid croppct , ivar(ID) time(t) gvar(TG)  cluster(TOWNSHIP) agg(simple) drimp


*all rez-t controls: Y= % crops
csdid croppct offrespop has_casino has_credit, ivar(ID) time(t) gvar(TG)  cluster(TOWNSHIP) agg(simple) drimp

*Baseline with no rezxt controls: Y=  1(% ag > 0)
csdid AgDum , ivar(ID) time(t) gvar(TG)  cluster(TOWNSHIP) agg(simple) drimp


*all rez-t controls: Y=  1(% ag > 0)
csdid AgDum offrespop has_casino has_credit, ivar(ID) time(t) gvar(TG)  cluster(TOWNSHIP) agg(simple) drimp

*Baseline with no rezxt controls: Y= % development
csdid devpct , ivar(ID) time(t) gvar(TG)  cluster(TOWNSHIP) agg(simple) drimp


*all rez-t controls: Y= % development
csdid devpct offrespop has_casino has_credit, ivar(ID) time(t) gvar(TG)  cluster(TOWNSHIP) agg(simple) drimp

restore


**Table A3, Panel C: Alternative Outcome Variables, twfe estimator
*******************************************************************************
*******************************************************************************

eststo clear
*Baseline with no rezxt controls: Y= % crops
reghdfe croppct post , absorb(ID stateXyear ) cluster(TOWNSHIP)
est sto twfe_alt_1

*all rez-t controls: Y= % crops
reghdfe croppct post offrespop has_c* ,  absorb(ID stateXyear ) cluster(TOWNSHIP)
est sto twfe_alt_2

*Baseline with no rezxt controls: Y=  1(% ag > 0)
reghdfe AgDum post , absorb(ID stateXyear ) cluster(TOWNSHIP)
est sto twfe_alt_3

*all rez-t controls: Y=  1(% ag > 0)
reghdfe AgDum post offrespop has_c* ,  absorb(ID stateXyear ) cluster(TOWNSHIP)
est sto twfe_alt_4

*Baseline with no rezxt controls: Y= % development
reghdfe devpct post , absorb(ID stateXyear ) cluster(TOWNSHIP)
est sto twfe_alt_5

*all rez-t controls: Y= % development
reghdfe devpct post offrespop has_c* ,  absorb(ID stateXyear ) cluster(TOWNSHIP)
est sto twfe_alt_6

esttab twfe_alt_1 twfe_alt_2 twfe_alt_3 twfe_alt_4 twfe_alt_5 twfe_alt_6,  se(a3) b(a3) star(* 0.1 ** 0.05 *** 0.01) ar2  replace   scalar(N_clust M1 MDV)

